/*
 * Copyright 2013 NJUT  qixiaobo. All rights reserved.
 */
package com.fujitsu.nanjing.tieba.common;

/**
 * Dialog.java
 * 
 * @author Administrator 单例设计模式
 */
public class Dialog {
	private Dialog() {

	}
	private static Dialog instance = new Dialog();
	private String content;
	private String title;
	private String okButton;
	private String cancelButton;
	public static Dialog instance() {
		return instance;
	}
	public String getContent() {
		return content;
	}
	public Dialog setContent(String content) {
		this.content = content;
		return instance;
	}
	public String getTitle() {
		if (title == null) {
			return "正在努力上传图片中……";
		}
		return title;
	}
	public Dialog setTitle(String title) {
		this.title = title;
		return instance;
	}
	public String getOkButton() {
		if (okButton == null) {
			return "ok";
		}
		return okButton;
	}
	public Dialog setOkButton(String okButton) {
		this.okButton = okButton;
		return instance;
	}
	public String getCancelButton() {
		if (cancelButton == null) {
			return "cancel";
		}
		return cancelButton;
	}
	public Dialog setCancelButton(String cancelButton) {
		this.cancelButton = cancelButton;
		return instance;
	}
}